//
//  YLCommonListItemCell.h
//  YLScaner
//
//  Created by Admin on 2025/9/25.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface YLCommonListItemCell : UITableViewCell
/// 下划线
@property (weak, nonatomic) IBOutlet UIView *bottomLine;
/// 图标
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
/// 主标题
@property (weak, nonatomic) IBOutlet UILabel *mainTitle;
/// 副标题
@property (weak, nonatomic) IBOutlet UILabel *subTitle;
/// 辅助试图-标题
@property (weak, nonatomic) IBOutlet UILabel *assistLabel;
/// 辅助试图-开关
@property (weak, nonatomic) IBOutlet UISwitch *assistSwitch;
/// 辅助试图-图片
@property (weak, nonatomic) IBOutlet UIImageView *assistImage;


//MARK: - Stack间距属性
/// 文本视图、辅助视图间距
@property (nonatomic, assign) CGFloat spaceGroupStack;
/// 文本视图间距
@property (nonatomic, assign) CGFloat spaceTextStack;
/// 辅助视图间距
@property (nonatomic, assign) CGFloat spaceAssistStack;
/// 图标圆角
@property (nonatomic, assign) CGFloat iconRadius;
/// 辅助图片高度
@property (nonatomic, assign) CGFloat assistImageH;


//MARK: - mainStack属性
/// 边距属性有效值：左、右、下、上
@property (nonatomic, assign) UIEdgeInsets mainStackEdge;
/// 间距
@property (nonatomic, assign) CGFloat mainStackSpace;


//MARK: - 容器属性
/// body左边距
@property (nonatomic, assign) CGFloat bodyLeft;
/// body右边距
@property (nonatomic, assign) CGFloat bodyRight;
/// body背景颜色
@property (nonatomic, strong) UIColor *bodyBackgroundColor;


//MARK: - 下划线属性
/// 下划线边距属性有效值：左、右、下
@property (nonatomic, assign) UIEdgeInsets lineEdge;
/// 下划线高度
@property (nonatomic, assign) CGFloat lineH;


//MARK: - 样式参数
/// 圆角半径
@property (nonatomic, assign) CGFloat radius;
/// 圆角范围
@property (nonatomic, assign) UIRectCorner corner;

/// 快捷方法-注册
+ (void)registerWithTableView:(UITableView *)tableview;

/// 快捷方法-初始化
+ (instancetype)cellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath;


@end

NS_ASSUME_NONNULL_END
